package test.designMode.AbstractFactory;

import test.designMode.AbstractFactory.apple.Apple;
import test.designMode.AbstractFactory.apple.WenshiApple;
import test.designMode.AbstractFactory.banana.Banana;
import test.designMode.AbstractFactory.banana.WenshiBanana;

public class WenshiFruitFactory implements FruitFactory {

	@Override
	public Fruit getApple() {
		return new WenshiApple();
	}

	@Override
	public Fruit getBanana() {
		return new WenshiBanana();
	}

	public static void main(String[] args) {
		FruitFactory ff = new WenshiFruitFactory();
		Apple apple =  (Apple)ff.getApple();
		apple.get();
		
		Banana banana = (Banana)ff.getBanana();
		banana.get();
	}
}
